// 引入管理后台样式
@use './admin.scss' as *;

// 基础样式
:root {
  font-family:
    'PingFang SC Light',
    'PingFang SC Thin',
    'PingFang SC',
    -apple-system,
    BlinkMacSystemFont,
    'SF Pro Display Light',
    'SF Pro Text Light',
    'Helvetica Neue Light',
    'Helvetica Light',
    'Source Han Sans CN Light',
    'Noto Sans SC Light',
    sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

// 禁用 Element Plus 的动画
.el-table,
.el-table__body-wrapper,
.el-table__header-wrapper,
.el-table__footer-wrapper,
.el-table__fixed-wrapper,
.el-table__fixed-right-wrapper,
.el-table__fixed-header-wrapper,
.el-table__fixed-footer-wrapper,
.el-table__fixed-body-wrapper,
.el-table__fixed-right-body-wrapper,
.el-table__fixed-right-header-wrapper,
.el-table__fixed-right-footer-wrapper,
.el-button,
.el-input,
.el-input__wrapper,
.el-select,
.el-select__wrapper,
.el-dialog,
.el-dialog__wrapper,
.el-message,
.el-message-box,
.el-notification,
.el-loading-mask,
.el-loading-spinner {
  transition: none !important;
  animation: none !important;
}

// 页面布局
.page-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

// 卡片样式
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  line-height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid #e2e8f0;

  span {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
  }

  .header-buttons {
    display: flex;
    gap: 12px;
  }
}

// 搜索栏
.common-search-bar {
  padding: 16px 20px;
  background: #fff;
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;

  .search-input {
    width: 300px;
  }

  .search-buttons {
    display: flex;
    gap: 8px;
  }
}

// 表格
.el-table {
  flex: 1;
  font-size: 14px;
}

// 分页
.pagination {
  margin-top: 20px;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;

  .jumper-with-search {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .jump-input {
    width: 50px;
    margin: 0 4px;
  }

  .search-btn {
    padding: 5px;
    height: 28px;
  }
}

// 对话框
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

// 移动端适配
@media screen and (max-width: 768px) {
  .card-header,
  .pagination {
    padding: 0 16px;
  }

  .common-search-bar {
    padding: 12px;
    flex-direction: column;

    .search-input {
      width: 100%;
    }

    .search-buttons {
      width: 100%;
      
      .el-button {
        flex: 1;
      }
    }
  }
} 